package com.wxy.domain;

/*用来存放登录后的userid*/
public class indexUser {
	private static final ThreadLocal<String> threadLocal = new ThreadLocal<String>();
	public static void setUserId(String userid) {
		threadLocal.set(userid);
	}
	public static int getUserId() {
		return Integer.parseInt(threadLocal.get());
	}
	public static void removeUserId() {
		threadLocal.remove();
	}
}
